#include"progress.h"

void Progress()
{
    char cir[4] = {'|', '\\', '-', '/'};
    char pg[NUM];
    memset(pg, '\0', sizeof(pg));
    int cnt = 0;
    while(cnt <= 100)
    {
        printf("[%-100s][%d%%][%c]\r", pg, cnt, cir[cnt % 4]);
        fflush(stdout);
        pg[cnt++] = STYLE;
        usleep(50000);
    }
    printf("\n");
}
